import React from 'react'
import {HashRouter as Router, Route} from 'react-router-dom'

// import {HashRouter} from 'react-router-dom'

import App from './app.jsx'
import Home from './home.jsx'
import List from './List.jsx'
import Detail from './Detail.jsx'
// import NotFound from './Nofind.jsx'

export default class RouteMap extends React.Component{
    constructor(props) {
        super(props)
    }
    render() {
        return (
            <Router>
                <App>
                    <Route exact path='/'  component={Home}></Route>
                    <Route path='/list' component={List}></Route>
                    <Route path='/detail/:id' component={Detail}></Route>
                    {/*<Route path='/*' component={NotFound}></Route>*/}
                </App>
            </Router>
        )
    }
}